package com.ruoyi.web.TemuSalesData.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.web.TemuSalesData.mapper.TemuSalesDataMapper;
import com.ruoyi.web.TemuSalesData.domain.TemuSalesData;
import com.ruoyi.web.TemuSalesData.service.ITemuSalesDataService;

/**
 * TemuSalesDataService业务层处理
 * 
 * @author kzc
 * @date 2025-07-26
 */
@Service
public class TemuSalesDataServiceImpl implements ITemuSalesDataService 
{
    @Autowired
    private TemuSalesDataMapper temuSalesDataMapper;

    /**
     * 查询TemuSalesData
     * 
     * @param id TemuSalesData主键
     * @return TemuSalesData
     */
    @Override
    public TemuSalesData selectTemuSalesDataById(Integer id)
    {
        return temuSalesDataMapper.selectTemuSalesDataById(id);
    }

    /**
     * 查询TemuSalesData列表
     * 
     * @param temuSalesData TemuSalesData
     * @return TemuSalesData
     */
    @Override
    public List<TemuSalesData> selectTemuSalesDataList(TemuSalesData temuSalesData)
    {
        return temuSalesDataMapper.selectTemuSalesDataList(temuSalesData);
    }

    /**
     * 新增TemuSalesData
     * 
     * @param temuSalesData TemuSalesData
     * @return 结果
     */
    @Override
    public int insertTemuSalesData(TemuSalesData temuSalesData)
    {
        return temuSalesDataMapper.insertTemuSalesData(temuSalesData);
    }

    /**
     * 修改TemuSalesData
     * 
     * @param temuSalesData TemuSalesData
     * @return 结果
     */
    @Override
    public int updateTemuSalesData(TemuSalesData temuSalesData)
    {
        return temuSalesDataMapper.updateTemuSalesData(temuSalesData);
    }

    /**
     * 批量删除TemuSalesData
     * 
     * @param ids 需要删除的TemuSalesData主键
     * @return 结果
     */
    @Override
    public int deleteTemuSalesDataByIds(Integer[] ids)
    {
        return temuSalesDataMapper.deleteTemuSalesDataByIds(ids);
    }

    /**
     * 删除TemuSalesData信息
     * 
     * @param id TemuSalesData主键
     * @return 结果
     */
    @Override
    public int deleteTemuSalesDataById(Integer id)
    {
        return temuSalesDataMapper.deleteTemuSalesDataById(id);
    }
}
